namespace Cart.model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("GoodsPropertyKey")]
    public partial class GoodsPropertyKey
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public GoodsPropertyKey()
        {
            GoodsPropertyValue = new HashSet<GoodsPropertyValue>();
        }

        [Key]
        public int gpkId { get; set; }

        public int gskid { get; set; }

        public int gId { get; set; }

        public virtual Goods Goods { get; set; }

        public virtual GoodsSpecKey GoodsSpecKey { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<GoodsPropertyValue> GoodsPropertyValue { get; set; }
    }
}
